<div class="layui-row layui-col-space15">
    <div class="layui-col-sm12">
        @if ($items)
        @foreach($items as $i => $item)
        <div class="layui-panel" style="padding:15px;">
            <div class="layui-row layui-col-space15">
                @if ($item->thumb)
                <div class="layui-col-sm4">
                    <img src="{{$item->thumb}}" alt="{{$item->title}}" style="width:100%">
                </div>
                @endif
                <div class="layui-col-sm{{$item->thumb ? 8 : 12}}">
                    <div class="layui-row">
                        <div class="layui-col-sm12">
                            <h2><a href="{{$item->link}}" title="{{$item->title}}">{{$item->title}}</a> &nbsp;
                                @if ($item->cat_id)
                                <a href="{{$item->catLink}}" title="{{$item->catName}}" class="layui-btn layui-btn-danger layui-btn-xs" rel="nofollow">{{$item->catName}}</a>
                                @endif
                            </h2>
                        </div>
                    </div>
                    <br />
                    <div class="layui-row">
                        <div class="layui-col-sm12">
                            {{$item->excerpt}}
                        </div>
                    </div>
                    <br />
                    <div class="layui-row">
                        <div class="layui-col-sm8">
                            <i class="layui-icon layui-icon-read"></i> {{$item->views}} 阅读
                            @if ($item->tags)
                            &nbsp;&nbsp;&nbsp;<i class="layui-icon layui-icon-note"></i>
                            @foreach($item->tags as $t => $tag)
                            <a href="{{$tag['link']}}" title="{{$tag['name']}}" rel="nofollow">{{$tag['name']}}</a>{{$t !== count($item->tags) - 1 ? '，' : ''}}
                            @endforeach
                            @endif
                        </div>
                        <div class="layui-col-sm4" style="text-align: right;">
                            <a href="{{$item->link}}" class="layui-btn" title="阅读更多" rel="nofollow"><i class="layui-icon layui-icon-link"></i> 阅读更多</a>
                        </div>
                    </div>
                    <br />
                </div>
            </div>
        </div>
        @if ($i !== count($items) - 1)
        <br />
        @endif
        @endforeach
        @else
        <div class="layui-panel" style="padding:15px;text-align:center">暂无文章</div>
        @endif
    </div>
</div>